package com.yida.system.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Description 系统数据接入接口配置保存参数
 * @Author wws
 * @Date 2023-04-04
 */
@ApiModel("系统数据接入接口配置保存参数")
public class SysDataPutInInterfaceConfigSaveRequest {

    @ApiModelProperty("系统数据接入配置主键")
    @NotNull(message = "系统数据接入配置主键不能为空")
    private Long sysDataPutInId;

    @ApiModelProperty("接口名称")
    @Size(max = 64,message = "接口名称不得超过64个字符")
    private String interfaceName;

    @ApiModelProperty("接口URI")
    @Size(max = 128,message = "接口URI不得超过64个字符")
    @NotBlank(message = "")
    private String interfaceUri;

    @ApiModelProperty("厂商对接接口配置主键")
    @NotNull(message = "厂商对接接口配置主键不能为空")
    private Long dockingInterfaceConfigId;

    @ApiModelProperty("接口编号")
    @Size(max = 64,message = "接口编号不得超过64个字符")
    private String interfaceCode;

    public Long getSysDataPutInId() {
        return sysDataPutInId;
    }

    public void setSysDataPutInId(Long sysDataPutInId) {
        this.sysDataPutInId = sysDataPutInId;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getInterfaceUri() {
        return interfaceUri;
    }

    public void setInterfaceUri(String interfaceUri) {
        this.interfaceUri = interfaceUri;
    }

    public Long getDockingInterfaceConfigId() {
        return dockingInterfaceConfigId;
    }

    public void setDockingInterfaceConfigId(Long dockingInterfaceConfigId) {
        this.dockingInterfaceConfigId = dockingInterfaceConfigId;
    }

    public String getInterfaceCode() {
        return interfaceCode;
    }

    public void setInterfaceCode(String interfaceCode) {
        this.interfaceCode = interfaceCode;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("SysDataPutInInterfaceConfigSaveRequest{");
        sb.append("sysDataPutInId=").append(sysDataPutInId);
        sb.append(", interfaceName='").append(interfaceName).append('\'');
        sb.append(", interfaceUri='").append(interfaceUri).append('\'');
        sb.append(", dockingInterfaceConfigId=").append(dockingInterfaceConfigId);
        sb.append(", interfaceCode='").append(interfaceCode).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
